    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>高仿日历</title>
        <style>
            *{
                margin:0;
                padding: 0;
            }
            div{
                height: 46px;
                width: 800px;
                /*background-color: #1A66B3;*/
                margin: 100px auto;
                font-size: 36px;
                font-weight: 600;
                color: #ff5459;
                font-family: FangSong;
            }

        </style>
    </head>
    <body>
    <div></div>
    <script>
        var div=document.getElementsByTagName("div")[0];

        var date1=new Date();
        var year=date1.getFullYear();
        var month=date1.getMonth();
        var day=date1.getDate();
        var weeknum=date1.getDay();
        var week=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
        div.innerHTML="今天是"+year+"年"+month+"月"+day+"号星期"+week[weeknum];
//        console.log(day);
    </script>
    </body>
    </html>